﻿@using Journal.Resources
@model Journal.Front.Presentation.Models.StudentModels.StudentPartialEditModel

@{Html.BeginForm("PopupSaveStudent", "Student", FormMethod.Post, new { id = "PopupForm" });}
@Html.HiddenFor(x => x.Id, new { @class = "post" })
@Html.HiddenFor(x => x.GroupId, new { @class = "post" })
@Html.LabelFor(x => x.Name, new { @class = "popup-label" })
@Html.TextBoxFor(x => x.Name, new { @class = "popup-input post" })
@Html.LabelFor(x => x.Surname, new { @class = "popup-label" })
@Html.TextBoxFor(x => x.Surname, new { @class = "popup-input post" })
@Html.LabelFor(x => x.GenderId, new { @class = "popup-label" })
<div>
    @Resource.ManGender
    @Html.RadioButtonFor(x => x.GenderId, 0)  
    @Resource.WomenGender
    @Html.RadioButtonFor(x => x.GenderId, 1) 
</div>
<br/>
<input type="button" value="Save" id="submitButton" data-popup-submit-url="@Url.Action("PopupSaveStudent", "Student")">
@{Html.EndForm();}
